#include <stdio.h>

int fun(int a, int b)
{
    int ret = 0;
    int i = 0;
    for(i = 1; i <= a + b; i++)
    {
        ret += i;
    }
    return ret;
}

int main()
{
    int a = 3;
    int b = 5;
    int c = fun(a, b);
    printf("%d\n", c);
    return 0;
}
